import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';
import hide from '@dfeidao/atom-web/ui/hide';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';

export default async function a008(fd: IFeidaoAiBrowserComponent) {
	// todo
	const arr = fd.data.node.querySelectorAll<HTMLDivElement>('[data-id="vall"]');
	const d = arr.length;//
	const arr1 = Array();
	for (let i = 0; i < arr.length; i++) {
		arr1.push(arr[i].getAttribute("data-v"));
	}

	fire('zj-000004', 'a008', arr1, d);
	console.log(arr);
	for (let i = 0; i < arr.length; i++) {
		// const sss = arr[i].parentElement;
		set_node_cls(arr[i], 'display-n', true);
		arr[i].removeAttribute('data-id');
}




	const div = fd.data.node.querySelector<HTMLDivElement>('[data-id="dis"]');
	set_node_cls(div, 'display-n', true);
	hide(fd.data.node);
}
